import { axios } from '@/utils/request'

/**
 * 查询用户菜单
 *
 * @author zj
 * @date 2022-08-09 15:37:51
 */
export function sysUserPage (parameter) {
  return axios({
    url: '/sysUser/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 用户菜单列表
 *
 * @author zj
 * @date 2022-08-09 15:37:51
 */
export function sysUserList (parameter) {
  return axios({
    url: '/sysUser/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加用户菜单
 *
 * @author zj
 * @date 2022-08-09 15:37:51
 */
export function sysUserAdd (parameter) {
  return axios({
    url: '/sysUser/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑用户菜单
 *
 * @author zj
 * @date 2022-08-09 15:37:51
 */
export function sysUserEdit (parameter) {
  return axios({
    url: '/sysUser/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除用户菜单
 *
 * @author zj
 * @date 2022-08-09 15:37:51
 */
export function sysUserDelete (parameter) {
  return axios({
    url: '/sysUser/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出用户菜单
 *
 * @author zj
 * @date 2022-08-09 15:37:51
 */
export function sysUserExport (parameter) {
  return axios({
    url: '/sysUser/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
